package collection.day04;

import java.util.*;

/**
 * @Author: Miyako
 * @Date: 2024-07-15-9:33
 * @Description:集合排序
 */
public class CollectionSortDemo01 {
    public static void main(String[] args) {
        Integer[] arr = {10,20,30,90,80,0};
        List<Integer> intRank = Arrays.asList(arr);
        Arrays.sort(arr);//对数组进行排序后，转换的集合也会排序
//        Collections.sort(intRank);
        System.out.println(intRank);

    }
}
